#include "lw_include.h"
#include "animal.h"
#include "car.h"

int main(int argc, char* argv)
{
	argc;
	argv;

	animal* animal1 = NULL;
	animal* animal2 = NULL;
	car* car1 = NULL;
	car* car2 = NULL;
	
	animal1 = lw_new(animal_klass);
	animal_set_name(animal1, "Kitty");
	animal_set_weight(animal1, 30);
	printf("animal1, name : %s, weight : %d\n",
	animal_get_name(animal1),
	animal_get_weight(animal1));
	lw_delete(animal1);

	animal2 = lw_new(animal_klass);
	animal_set_name(animal2, "Bib");
	animal_set_weight(animal2, 10);
	printf("animal2, name : %s, weight : %d\n",
	animal_get_name(animal2),
	animal_get_weight(animal2));
	lw_delete(animal2);

	car1 = lw_new(car_klass);
	car_set_logo(car1, "Honda");
	car_set_color(car1, 0);
	printf("car1, logo : %s, color : %d\n",
	car_get_logo(car1),
	car_get_color(car1));
	lw_delete(car1);

	car2 = lw_new(car_klass);
	car_set_logo(car2, "BMW");
	car_set_color(car2, 1);
	printf("car2, logo : %s, color : %d\n",
	car_get_logo(car2),
	car_get_color(car2));
	lw_delete(car2);

	return 0;
}
